package cz.vutbr.feec.utko.ef.examples.regression;

import cz.vutbr.feec.utko.ef.individuals.ActionTree;

/**
 * The Class ReadNumber.
 */
public class ReadNumber extends ActionTree {
	
	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 569801165791933L;

	/** The value. */
	private Double value;

	/**
	 * Instantiates a new read number.
	 */
	public ReadNumber() {
	}
	
	/**
	 * Instantiates a new read number.
	 * 
	 * @param value the value
	 */
	public ReadNumber(Double value) {
		this.value = value;
	}

	/* (non-Javadoc)
	 * @see cz.vutbr.feec.utko.ef.individuals.ActionTree#getSymbol()
	 */
	@Override
	public String getSymbol() {
		return "ReadNumber";
	}
	
	/**
	 * Sets the value.
	 * 
	 * @param value the new value
	 */
	public void setValue(Double value) {
		this.value = value;
	}

	/* (non-Javadoc)
	 * @see cz.vutbr.feec.utko.ef.individuals.Action#getValue(java.lang.Object[])
	 */
	@Override
	public Object getValue(Object... operands) {

		Object res = this.value;
		return res;
	}

	/* (non-Javadoc)
	 * @see cz.vutbr.feec.utko.ef.individuals.ActionTree#initialize()
	 */
	@Override
	public void initialize() {
	}

}
